package com.cslg.ac.demo.entity.user.team;

import com.cslg.ac.demo.util.string.StringUtil;

public class TeamProfile {

    private Integer id;
    private String jobRules;
    private String adoptRules;
    private String introduction;
    private String purpose;
    private String work;
    private String finance;
    private String tCondition;

    public boolean isChangeValid(int profileLength){
        if(StringUtil.haveNullOrEmpty(introduction,purpose,work,finance,tCondition)){
            return false;
        }
        if(StringUtil.lengthAbove(introduction,profileLength) || StringUtil.lengthAbove(purpose,profileLength) ||
                StringUtil.lengthAbove(work,profileLength) || StringUtil.lengthAbove(finance,profileLength) || StringUtil.lengthAbove(tCondition,profileLength)){
            return false;
        }
        return true;
    }

    public TeamProfile() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getJobRules() {
        return jobRules;
    }

    public void setJobRules(String jobRules) {
        this.jobRules = jobRules;
    }

    public String getAdoptRules() {
        return adoptRules;
    }

    public void setAdoptRules(String adoptRules) {
        this.adoptRules = adoptRules;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getPurpose() {
        return purpose;
    }

    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    public String getWork() {
        return work;
    }

    public void setWork(String work) {
        this.work = work;
    }

    public String getFinance() {
        return finance;
    }

    public void setFinance(String finance) {
        this.finance = finance;
    }

    public String gettCondition() {
        return tCondition;
    }

    public void settCondition(String tCondition) {
        this.tCondition = tCondition;
    }

    @Override
    public String toString() {
        return "TeamProfilePO{" +
                "id=" + id +
                ", jobRules='" + jobRules + '\'' +
                ", adoptRules='" + adoptRules + '\'' +
                ", introduction='" + introduction + '\'' +
                ", purpose='" + purpose + '\'' +
                ", work='" + work + '\'' +
                ", finance='" + finance + '\'' +
                ", tCondition='" + tCondition + '\'' +
                '}';
    }
}
